// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';
const apiPrefix = '/web';

/** 获取日收益报表 GET /statistic/income/day */
export async function statisticIncomeControllerGetDayReport(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.statisticIncomeControllerGetDayReportParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultStatisticIncomeVOStatisticDayIncome>(
    `${apiPrefix}/statistic/income/day`,
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    },
  );
}

/** 获取日收益图表 GET /statistic/income/day/graph */
export async function statisticIncomeControllerExportDayReport(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.statisticIncomeControllerExportDayReportParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultReportTable>(`${apiPrefix}/statistic/income/day/graph`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 导出收益报表 GET /statistic/income/export */
export async function statisticIncomeControllerExportReport(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.statisticIncomeControllerExportReportParams,
  options?: { [key: string]: any },
) {
  return request<any>(`${apiPrefix}/statistic/income/export`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 获取月收益报表 GET /statistic/income/month */
export async function statisticIncomeControllerGetMonthReport(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.statisticIncomeControllerGetMonthReportParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultStatisticIncomeVOStatisticMonthIncome>(
    `${apiPrefix}/statistic/income/month`,
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    },
  );
}

/** 获取月收益图表 GET /statistic/income/month/graph */
export async function statisticIncomeControllerExportMonthReport(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.statisticIncomeControllerExportMonthReportParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultReportTable>(`${apiPrefix}/statistic/income/month/graph`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 获取年收益报表 GET /statistic/income/year */
export async function statisticIncomeControllerGetYearReport(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.statisticIncomeControllerGetYearReportParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultStatisticIncomeVOStatisticYearIncome>(
    `${apiPrefix}/statistic/income/year`,
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    },
  );
}

/** 获取年收益图表 GET /statistic/income/year/graph */
export async function statisticIncomeControllerExportYearReport(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.statisticIncomeControllerExportYearReportParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultReportTable>(`${apiPrefix}/statistic/income/year/graph`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
